/*    */ package com.zimbra.cs.account;
/*    */ 
/*    */ import java.util.Map;
/*    */ import java.util.Set;
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ 
/*    */ public class Zimlet
/*    */   extends NamedEntry
/*    */ {
/*    */   public Zimlet(String name, String id, Map<String, Object> attrs, Provisioning prov)
/*    */   {
/* 24 */     super(name, id, attrs, null, prov);
/*    */   }
/*    */   
/*    */   public Entry.EntryType getEntryType()
/*    */   {
/* 29 */     return Entry.EntryType.ZIMLET;
/*    */   }
/*    */   
/*    */   public boolean isEnabled() {
/* 33 */     return getBooleanAttr("zimbraZimletEnabled", false);
/*    */   }
/*    */   
/*    */   public String getPriority() {
/* 37 */     return getAttr("zimbraZimletPriority");
/*    */   }
/*    */   
/*    */   public boolean isExtension() {
/* 41 */     return getBooleanAttr("zimbraZimletIsExtension", false);
/*    */   }
/*    */   
/*    */   public String getType() {
/* 45 */     return getAttr("cn");
/*    */   }
/*    */   
/*    */   public String getDescription() {
/* 49 */     return getAttr("zimbraZimletDescription");
/*    */   }
/*    */   
/*    */   public boolean isIndexingEnabled() {
/* 53 */     return getBooleanAttr("zimbraZimletIndexingEnabled", false);
/*    */   }
/*    */   
/*    */   public String getHandlerClassName() {
/* 57 */     return getAttr("zimbraZimletHandlerClass");
/*    */   }
/*    */   
/*    */   public String getHandlerConfig() {
/* 61 */     return getAttr("zimbraZimletHandlerConfig");
/*    */   }
/*    */   
/*    */   public String getServerIndexRegex() {
/* 65 */     return getAttr("zimbraZimletServerIndexRegex");
/*    */   }
/*    */   
/*    */   public boolean checkTarget(String target)
/*    */   {
/* 70 */     Set<String> lTiers = getMultiAttrSet("zimbraZimletTarget");
/* 71 */     return lTiers == null ? false : lTiers.contains(target);
/*    */   }
/*    */ }


/* Location:              /home/mint/zimbrastore.jar!/com/zimbra/cs/account/Zimlet.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       0.7.1
 */